package com.wodwl.entity;

import java.util.Date;

import org.json.JSONException;
import org.json.JSONObject;

import com.sun.org.apache.bcel.internal.generic.NEW;
import com.thoughtworks.xstream.io.path.Path;

public class Bbs {
	private int bid;
	private String path;
	private String title;
	private String content;
	private String username;
	private String category;
	private long create_time;
	private int visit_count;
	private int status;
	public JSONObject toJsonObject() throws JSONException{
		JSONObject object=new JSONObject();
		object.put("path", path);
		object.put("title",title);
		object.put("content",content);
		object.put("username",username);
		object.put("category",category);
		object.put("create_time",create_time);
		object.put("visit_count",visit_count);
		object.put("status",status);
		return object;
	}
	public int getFid() {
		return bid;
	}
	public void setFid(int fid) {
		this.bid = fid;
	}
	
	public int getBid() {
		return bid;
	}
	public void setBid(int bid) {
		this.bid = bid;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	
	public long getCreate_time() {
		return create_time;
	}
	public void setCreate_time(long create_time) {
		this.create_time = create_time;
	}
	public int getVisit_count() {
		return visit_count;
	}
	public void setVisit_count(int visit_count) {
		this.visit_count = visit_count;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	

}
